<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<style>
.detailpd { padding-top:10px; }
</style>
<script>
function getQueryParam(name) {
    var obj = $('#common-dialog').dialog('options');
    var queryParams = obj["queryParams"];
    return queryParams[name];
}
//自动填充值
function autoInput(obj){
 	$.each(obj, function(i, n){
	  //from 下的input
	 $("#dirving-div-detail input[name="+i+"]").textbox({value:n});
	 //$("#coache-div-detail #"+i).html(n);
	});
}


$(function(){
	var _id  =getQueryParam("id");
	$.getJSON("DrivingSchoolServlet?method=edit",{id:_id},function(json){
		//自动添值
		autoInput(json);
	});	
	$('#dirving-div-detail input').attr('disabled','true')
 });
</script>
</head>
<body>

		<div class="datagrid-body" id="dirving-div-detail">
			<table class="datagrid-btable" cellspacing="0" cellpadding="0"
				border="0" style="width: 100%;">
				<tbody>
					<tr class="datagrid-row">
						<td
							style="border-style: solid; width: 15%; text-align: right;    padding-right: 7px">所属驾校</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="drivingSchoolName"
							class="easyui-validatebox" style="width: 266px">
						</td>
<!-- 					</tr> -->
<!-- 					<tr class="datagrid-row"> -->
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">驾校名称</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="companyName"
							class="easyui-validatebox" style="width: 266px">
						</td>
					</tr>
					<tr class="datagrid-row">
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">经营许可证号</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="blNumber"
							class="easyui-validatebox" style="width: 266px">
						</td>
<!-- 					</tr> -->
<!-- 					<tr class="datagrid-row"> -->
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">区域</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="area"
							class="easyui-validatebox" style="width: 266px">
						</td>
					</tr>
					<tr class="datagrid-row">
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">工商执照号</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="licenseNo"
							class="easyui-validatebox" style="width: 266px">
						</td>
<!-- 					</tr> -->
<!-- 					<tr class="datagrid-row"> -->
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">地址</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="site"
							class="easyui-validatebox" style="width: 266px">
						</td>
					</tr>
					<tr class="datagrid-row">
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">法定代表人</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="legalPerson"
							class="easyui-validatebox" style="width: 266px">
						</td>
<!-- 					</tr> -->
<!-- 					<tr class="datagrid-row"> -->
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">联系电话</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="phone"
							class="easyui-validatebox" style="width: 266px">
						</td>
					</tr>
					<tr class="datagrid-row">
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">邮政编码</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="postalCode"
							class="easyui-validatebox" style="width: 266px">
						</td>
<!-- 					</tr> -->
<!-- 					<tr class="datagrid-row"> -->
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">经营范围</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="businessScope"
							class="easyui-validatebox" style="width: 266px">
						</td>
					</tr>
					<tr class="datagrid-row">
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">档案号</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="fn"
							class="easyui-validatebox" style="width: 266px">
						</td>
<!-- 					</tr> -->
<!-- 					<tr class="datagrid-row"> -->
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">经济性质</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="economicNature"
							class="easyui-validatebox" style="width: 266px">
						</td>
					</tr>
					<!-- <tr class="datagrid-row">
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">修建人</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="createName" class="easyui-validatebox"
							style="width: 266px">
						</td>
					</tr>
					<tr class="datagrid-row">
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">修改人</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="updateName" class="easyui-validatebox"
							style="width: 266px">
						</td>
					</tr> -->
				</tbody>
			</table>
		</div>
</body>
</body>
</html>